package com.xiaozhi.service.impl;

import java.util.List;

import org.bytedeco.librealsense.device;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.xiaozhi.dao.DeviceMapper;
import com.xiaozhi.dao.DevicePicMapper;
import com.xiaozhi.entity.BussinessCombo;
import com.xiaozhi.entity.DevicePic;
import com.xiaozhi.service.DevicePicServer;

import lombok.AllArgsConstructor;

@Service
@AllArgsConstructor
public class DevicePicServerImpl implements DevicePicServer{
    private final DevicePicMapper devicePicMapper;

    @Override
    @Transactional
    public int add(DevicePic pic)
        {
            return devicePicMapper.add(pic);
        }

    @Override
    @Transactional
    public DevicePic selectPicByDeviceId(String DeviceId)
        {
            return devicePicMapper.selectPicByDeviceId(DeviceId);
        }

    @Override
    @Transactional
    public int update(DevicePic pic)
    {
        return devicePicMapper.update(pic);
    }
}
